From 1bebf0c7ea1085a6c7a2d6cd99cd39803f5ba66c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 2 Feb 2012 18:42:02 +0000 Subject: [PATCH] Fixed windows-related test failures (that string format doesn't work with \r\n line endings as the \r chars are left in the PHP string). --- tests/phpunit/includes/HtmlTest.php | 67 +++++++++++++++-------------- tests/phpunit/includes/XmlTest.php | 67 +++++++++++++++-------------- 2 files changed, 68 insertions(+), 66 deletions(-) diff --git a/tests/phpunit/includes/HtmlTest.php b/tests/phpunit/includes/HtmlTest.php index d3feaccb1c..67b60d3235 100644 --- a/tests/phpunit/includes/HtmlTest.php +++ b/tests/phpunit/includes/HtmlTest.php @@ -213,43 +213,44 @@ class HtmlTest extends MediaWikiTestCase { function testNamespaceSelector() { $this->assertEquals( - '', + '', Html::namespaceSelector(), 'Basic namespace selector without custom options' ); $this->assertEquals( - ' ', + ' ' . +'', Html::namespaceSelector( array( 'selected' => '2', 'all' => 'all', 'label' => 'Select a namespace:' ), array( 'name' => 'wpNamespace', 'id' => 'mw-test-namespace' ) diff --git a/tests/phpunit/includes/XmlTest.php b/tests/phpunit/includes/XmlTest.php index e9c531cc89..1d9361f215 100644 --- a/tests/phpunit/includes/XmlTest.php +++ b/tests/phpunit/includes/XmlTest.php @@ -195,43 +195,44 @@ class XmlTest extends MediaWikiTestCase { function testNamespaceSelector() { $this->assertEquals( - '', + '', Xml::namespaceSelector(), 'Basic namespace selector without custom options' ); $this->assertEquals( - ' ', + '' . +' ', Xml::namespaceSelector( $selected = '2', $all = 'all', $element_name = 'myname', $label = 'Select a namespace:' ), 'Basic namespace selector with custom values' ); -- 2.20.1